<!doctype html>
<html>
	<head>
		<title><c:block name="title"/></title>
		<style>/*<![CDATA[*/
			html,body{
				width:100%;height:100%;
				margin:0;padding:0;
			}
			.topbar,.buttombar{
				background:#EEEEEE;
    			border:1px outset #333333;
    			border-width:1px 0;
				padding:2px 0;
				font-weight:bold;
				font-size:14px;
				margin:0px;
				height:14px;
				width:100%;
				z-index:10;
				text-indent:4px;
				position:absolute;
				opacity:0.8;
			}
			.topbar{
				top:0px;
			}
			.buttombar{
				bottom:0px;
				font-size:12px;
			}
			.buttombar a,.topbar a{
				color:#333;
			}
			#content{
				width:100%;
				height:100%;
				position:absolute;
				overflow:auto;
				top:0px;
			}
			#content ul{
				margin:0px 0;
				padding:30px 38px
			}
			/*]]>*/
		</style>
	</head>
	<body>
		<div  id="content">
			<c:block name="content"/>
		</div>
		<div class="topbar" h:trim="true">
			<a href="/">${root.absolutePath.replace(/[\\]/g,'/')}</a>
			<c:var name="list" value="${path.split('/').slice(1)}" />
			<c:for var="name" list="${list}">
				/<a href="/${list.slice(0,for.index+1).join('/')}">${name}</a>
			</c:for>
		</div>
		<script>
		/*<![CDATA[*/
			function viewDataSource(fileName,href,title){
				if(fileName.indexOf('.')>0){
					//maybe template
					return true;
				}else{
					//isDir
					confirm('查看数据模型只能用于调试模板数据\n'+
						'可直接将该链接拖放到浏览器的工具栏（搜藏夹）中，以备不时之需');
				}
				return false;
			}
			//]]>
		</script>
		<div class="buttombar" h:trim="true">
			<a href="http://www.xidea.org/jside/">调试服务器介绍</a>
			/
			<a href="javascript:document.cookie='LITE_DEBUG=model;expires='+new(Date)(+new(Date)+1000).toGMTString();location.reload()" 
				onclick="return viewDataSource(${name},this.href,this.innerHTML)" rel="sidebar">查看数据模型</a>
			/
			<a href="http://www.xidea.org/jside/example/">部署Lite实例</a>
			
		</div>
	</body>
</html>
